// components/store/store.ts
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    status: {
      type: Boolean,
      value: false,
      observer(newVal) {
        console.log('组件的属性列表', newVal)
        this.setData({
          active: newVal
        })
      }
    },
    data: {
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    active: false,
    logo:'',
    themeCode:''
  },
  lifetimes: {
    attached() {
      //从本地获取当前选择的城市编码
      this.setData({
        themeCode: wx.getStorageSync('themeCode')
      })
    },
    ready(){
      const currentDrivingSchool = wx.getStorageSync('currentDrivingSchool')
      this.setData({
        logo:currentDrivingSchool.logo
      })
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {

  }
})